home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol05 / 02 / checker3 / checkers.h < prev    next >
Text File  |  1990-03-19  |  2KB  |  81 lines

  1. /*--------------------------------------
  2.    CHECKERS.H header file, Version 0.30
  3.   --------------------------------------*/
  4.  
  5.           // Constants and structures
  6.  
  7. #define BLACK                       0
  8. #define WHITE                       1
  9. #define NORM                        0
  10. #define KING                        1
  11.  
  12. typedef struct
  13.      {
  14.      ULONG ulBlack ;
  15.      ULONG ulWhite ;
  16.      ULONG ulKing ;
  17.      }
  18.      BOARD ;
  19.  
  20. typedef BOARD FAR *PBOARD ;
  21.  
  22.           // Menu ID
  23.  
  24. #define ID_RESOURCE                 1
  25.  
  26.           // Pointer ID's
  27.  
  28. #define IDP_UPHAND                  2
  29. #define IDP_DNHAND                  3
  30.  
  31.           // Menu ID's
  32.  
  33. #define IDM_NEWGAME                 1
  34. #define IDM_BOTTOM                  2
  35. #define IDM_ABOUT                   3
  36.  
  37. #define IDM_COLOR_BACKGROUND       11
  38. #define IDM_COLOR_BLACK_SQUARE     12
  39. #define IDM_COLOR_WHITE_SQUARE     13
  40. #define IDM_COLOR_BLACK_PIECE      14
  41. #define IDM_COLOR_WHITE_PIECE      15
  42. #define IDM_COLOR_STANDARD         16
  43.  
  44.           // Dialog Box ID's
  45.  
  46. #define IDD_ABOUT_DLG               1
  47. #define IDD_COLOR_DLG               2
  48.  
  49. #define IDD_HEADING                10
  50. #define IDD_COLOR                  20     // 11 --> 20   EJM  1/10/90
  51.  
  52.           // User-Defined Messages
  53.  
  54.                // Messages from ClientWndProc to JudgeWndProc
  55.  
  56. #define WM_TELL_JUDGE_BOARD_HANDLE      (WM_USER + 1)
  57. #define WM_TELL_JUDGE_NEW_GAME          (WM_USER + 2)
  58.  
  59.                // Messages from ClientWndProc to BoardWndProc
  60.  
  61. #define WM_TELL_BOARD_JUDGE_HANDLE      (WM_USER + 10)
  62. #define WM_TELL_BOARD_NEW_ORIENTATION   (WM_USER + 11)
  63. #define WM_TELL_BOARD_COLOR_DIALOG      (WM_USER + 12)
  64. #define WM_TELL_BOARD_STANDARD_COLORS   (WM_USER + 13)
  65.  
  66.                // Messages from Judge to Board
  67.  
  68. #define WM_JUDGE_SAYS_RESET_BOARD       (WM_USER + 20)
  69. #define WM_JUDGE_SAYS_MOVE_BLACK        (WM_USER + 21)
  70. #define WM_JUDGE_SAYS_MOVE_WHITE        (WM_USER + 22)
  71. #define WM_JUDGE_SAYS_REMOVE_PIECE      (WM_USER + 23)
  72.  
  73.                // Messages from Board to Judge
  74.  
  75. #define WM_QUERY_JUDGE_CURRENT_BOARD    (WM_USER + 30)
  76. #define WM_QUERY_JUDGE_PICKUP_PIECE     (WM_USER + 31)
  77. #define WM_QUERY_JUDGE_IF_KING          (WM_USER + 32)
  78. #define WM_QUERY_JUDGE_PUTDOWN_PIECE    (WM_USER + 33)
  79. #define WM_QUERY_JUDGE_CONTINUE_MOVE    (WM_USER + 34)
  80. #define WM_TELL_JUDGE_BOARD_MOVE_ENDED  (WM_USER + 35)
  81.